import request from '@/utils/request'

// 查询课程日期列表
export function listSchedule(query) {
  return request({
    url: '/school/schedule/list',
    method: 'get',
    params: query
  })
}

// 查询课程日期详细
export function getSchedule(id) {
  return request({
    url: '/school/schedule/' + id,
    method: 'get'
  })
}

// 新增课程日期
export function addSchedule(data) {
  return request({
    url: '/school/schedule',
    method: 'post',
    data: data
  })
}

// 修改课程日期
export function updateSchedule(data) {
  return request({
    url: '/school/schedule',
    method: 'put',
    data: data
  })
}

// 删除课程日期
export function delSchedule(id) {
  return request({
    url: '/school/schedule/' + id,
    method: 'delete'
  })
}

// 导出课程日期
export function exportSchedule(query) {
  return request({
    url: '/school/schedule/export',
    method: 'get',
    params: query
  })
}

// 查询课程详情展示信息
export function queryDetailsSchedule(query) {
  return request({
    url: '/school/schedule/details/',
    method: 'get',
    params: query
  })
}